package org.example.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;

@TableName(value = "shopping_cart")
public class ShoppingCartInfo {

    //商品id
    @TableId(type = IdType.AUTO)
    private Integer productId;
    //skuID
    private Integer skuId;
    //用户名
    private String userName;
    //购物车商品数量
    private Integer cartNum;
    //购物车中商品单价
    private BigDecimal productPrice;
    //sku属性
    private String skuProps;

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getCartNum() {
        return cartNum;
    }

    public void setCartNum(Integer cartNum) {
        this.cartNum = cartNum;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public String getSkuProps() {
        return skuProps;
    }

    public void setSkuProps(String skuProps) {
        this.skuProps = skuProps;
    }

    @Override
    public String toString() {
        return "ShoppingCartInfo{" +
                "productId=" + productId +
                ", skuId=" + skuId +
                ", userName='" + userName + '\'' +
                ", cartNum=" + cartNum +
                ", productPrice=" + productPrice +
                ", skuProps='" + skuProps + '\'' +
                '}';
    }
}
